
:deep(.ant-divider-horizontal) {
  margin: 10px 0;
}

:deep(.ant-btn-sm) {
  border-radius: 2px;
  font-size: 12px;
  height: 20px;
  padding: 0 2px;
}

.real-time-data {
  min-width: 800px;
  position: relative;

  .head-button {
    position: absolute;
    z-index: 999;
    right: 20px;
    top: -10px;
    width: 100px;
    display: flex;

    .el-button {
      flex: 1;
    }

    .cursor-pointer {
      flex: 1;
      cursor: pointer;
    }
  }

  .warn-bg {
    color: #fff;
    background: #fe9830;
  }

  .alarm-bg {
    color: #fff;
    background: #fd5b66;
  }

  .gray {
    border-color: #8b96a6 !important;
    background: #8b96a6 !important;
  }

  > .head {
    display: flex;
    justify-content: flex-end;
  }

  > .body {
    display: flex;

    .left {
      min-width: 180px;
      height: 100vh;

      .head {
        > span {
          display: inline-block;
          width: calc(50% - 3px);
          height: 40px;
          text-align: center;
          line-height: 40px;
          color: #c6cad1;
          background: #fff;
          border: 1px solid #8b96a6;
          cursor: pointer;
        }

        > span:first-of-type {
          border-radius: 10px 0 0 0;
        }

        > span:last-of-type {
          border-radius: 0 10px 0 0;
        }

        .selected {
          background: #0067e1ff;
          color: #fff;
          border-color: #0067e1ff;
        }
      }

      .body {
        padding: 15px 10px;
        height: 100%;
        background: #fff;

        > .bed-btn-group {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;

          > .bed-btn {
            border-radius: 4px;
            display: inline-block;
            padding: 5px 10px;
            color: #fff;
            background: #c6cad1;
            cursor: pointer;
          }

          > .selected {
            background: #0067e1;
          }
        }
      }
    }

    .center {
      width: 100%;
      //display: flex;
      //flex-wrap: wrap;
      //justify-content: flex-start;
      padding-left: 20px;
      height: 100%;
      background: #f1f2f5;

      .alarm-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        max-width: 300px;
        min-width: 300px;
        height: 360px;
        margin: 0 12px 12px 0;
        border-radius: 4px;
        background: #fff;
        font-size: 14px;
        color: #464646;

        > .head {
          cursor: pointer;
          font-size: px2rem(14);
          background: #634de7;
          padding: 8px 10px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          height: 40px;
        }

        .alarm-head {
          background: #fd5b66;
          color: #fff;
          border-radius: 4px 4px 0 0;
        }

        .warn-head {
          background: #ffa60d;
          color: #fff;
          border-radius: 4px 4px 0 0;
        }

        .normal-head {
          background: rgba(0, 103, 225, 0.2);
          color: #0067e1;
          border-radius: 4px 4px 0 0;
        }

        .offline-head {
          background: rgba(82, 85, 87, 0.2);
          color: #f6f7fa;
          border-radius: 4px 4px 0 0;
        }

        > .body {
          padding: 15px;
          height: 100%;

          > .head {
            font-size: 14px;
            display: flex;
            justify-content: flex-start;
            flex-wrap: wrap;

            .status {
              > span {
                font-size: 12px;
                padding: 2px 5px;
              }
            }
          }

          > .status-div {
            margin-top: 5px;

            > .normal {
              display: flex;
              justify-content: flex-start;
              flex-wrap: wrap;

              > span {
                display: inline-block;
                width: calc(50% - 5px);
                text-align: left;
                margin-bottom: 5px;
              }

              > span:nth-child(2n) {
                padding-left: 10px;
              }

              .text {
                margin: 0 2px 0 8px;
                font-size: 16px;
                color: #000;
              }

              .unit {
                font-size: 12px;
                color: #8b96a6;
              }
            }

            > .time-div {
              display: flex;
              justify-content: space-between;
              align-items: center;
              font-size: 12px;
              margin: 2px 0;
              color: #8b96a6;

              .roll-over {
                color: #8b96a6;

                > span:last-of-type {
                  font-size: 14px;
                  color: #ffa60d;
                }
              }
            }
          }

          > .bottom {
            height: 100px;

            > .head {
              font-size: 14px;
              display: flex;
              justify-content: space-between;
              align-items: center;
            }

            > .body {
              display: flex;
              justify-content: space-between;
              flex-wrap: wrap;
              height: 80px;
              line-height: 20px;

              > div {
                font-size: 12px;
                width: 33%;
                margin-top: 5px;
                text-align: left;

                > span:first-of-type {
                  color: #8b96a6;
                }
              }

              > div:nth-child(3n) {
                text-align: right;
              }
            }

            > .update-time {
              text-align: left;
              font-size: 12px;
              color: #8b96a6;
            }
          }
        }

        ///*>=1920的设备*/
        //@media (max-width: 1920px) {
        //  .title{
        //    font-size:14px;
        //  }
        //  >div:first-of-type{
        //    font-size:40px;
        //  }
        //}
        ///*>=1440的设备*/
        //@media (max-width: 1600px) {
        //  .title{
        //    font-size:14px;
        //  }
        //  >div:first-of-type{
        //    font-size:28px;
        //  }
        //  img{
        //    width:70px
        //  }
        //}
        ///*>=1366的设备*/
        //@media (max-width: 1366px) {
        //  .title{
        //    font-size:12px;
        //  }
        //  >div:first-of-type{
        //    font-size:24px;
        //  }
        //  img{
        //    width:60px
        //  }
        //}
      }

      .alarm-item-4 {
        //width: calc((100% - 50px) / 4);
        min-width: 280px;
        max-width: 280px;
        //min-width: calc((100% - 50px) / 4);
        //max-width: calc((100% - 50px) / 4);
        &:nth-child(4n) {
          //margin-right:0;
        }
      }

      .alarm-item-5 {
        //width: calc((100% - 50px) / 5);
        min-width: 280px;
        max-width: 280px;
        //min-width: calc((100% - 50px) / 5);
        //max-width: calc((100% - 50px) / 5);
        &:nth-child(5n) {
          margin-right: 0;
        }
      }
    }

    .right-alarm {
      margin-top: 35px;
      min-width: 310px;
      background: #fff;
      padding: 10px;
      box-shadow: 0px 3px 6px 1px rgba(0, 103, 225, 0.1);

      > .head {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;

        > span:last-of-type {
          color: #999999;
        }
      }

      > .body {
        .alarm-list-item {
          display: flex;
          justify-content: space-between;
          border-bottom: 1px solid #e3e7f1;
          padding: 10px 0;

          > div.alarm-list-item-content:first-of-type {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            min-width: 230px;
            flex: 8;

            > div.item-content-left {
              margin-top: 5px;
              flex: 2;
            }

            > div.item-content-right {
              flex: 8;
              display: flex;
              flex-direction: column;
              width: 180px;
              margin-left: 10px;

              > span:first-child {
                padding: 5px 0;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
              }
              > span {
                text-align: left;
              }
            }
          }

          .handle-class {
            cursor: pointer;
            flex: 2;
          }

          .tag {
            padding: 5px;
          }
        }
      }
    }

    .green {
      color: #78cd59;
      background: rgba(69, 170, 32, 0.1);
    }

    .blue {
      color: #0067e1;
      background: rgba(0, 103, 225, 0.1);
    }

    .gray {
      color: #8b96a6;
      background: rgba(139, 150, 166, 0.1);
    }

    .green-color {
      color: #78cd59;
    }

    .blue-color {
      color: #0067e1;
    }

    .gray-color {
      color: #8b96a6;
    }

    .black-color {
      color: #000;
    }

    .red-color {
      color: #fd5b66 !important;
    }
  }
}